/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package dao;

import entity.Billet;

/**
 *
 * @author linos
 */
public class NewMain2 {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        
        Billet b=(Billet) new BilletDAO().findByProperty("numero","99940187321000-VP99").get(0);
        System.out.println("Titre="+b.getTypeb().getEvenement().getTitre());
        System.out.println("Type="+b.getTypeb().getTypeBillet().getTypeCarte());
        System.out.println("Prix="+b.getTypeb().getPrix());
        System.out.println("Modele="+b.getTypeb().getTypeBillet().getModele());
    }
}
